//
//  Memento.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/8.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "Memento.h"

@implementation Memento
@synthesize value;

-(void)setValue:(NSString *)newValue
{
    value = newValue;
}

-(NSString *)value
{
    return value;
}

-(instancetype)mementWithValue:(NSString*)newValue;
{
    
    Memento * memento = [[Memento alloc]init];
    memento.value = newValue;
    return memento;
}

@end
